﻿using PetaPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BrnMall.Manager.Domain.Rander
{
    /// <summary>
    /// 雷达的操作记录
    /// </summary>
    [TableName("crm_ActionRecord")]
    [PrimaryKey("id")]
    public class ActionRecord
    {
        /// <summary>
        /// 自增列
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 会员ID（用户角色）
        /// </summary>
        public int Uid { get; set; }
        ///// <summary>
        ///// 上级会员ID（业务员或BOSS角色）
        ///// </summary>
        //public int ParentUid { get; set; }
      
        /// <summary>
        /// 员工ID
        /// </summary>
        public int StaffId{ get; set; }

        /// <summary>
        /// 会员的操作类型
        /// </summary>
        public int ActionType { get; set; }
        /// <summary>
        /// 日期(如：20180601)
        /// </summary>
        public int DateNumber { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime Addtime { get; set; }
    }

    /// <summary>
    /// 操作统计
    /// </summary>
    public class ActionTotalView
    {
        /// <summary>
        /// 操作类型
        /// </summary>
        public int ActionType { get; set; }
        /// <summary>
        /// 记录数
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        public string Date { get; set; }
    }

    public class RadarNumInfo
    {
        /// <summary>
        /// 操作类型
        /// </summary>
        public int actionType { get; set; }
        /// <summary>
        /// 使用次数
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// 上级
        /// </summary>
        public int StaffId { get; set; }

        public DateTime AddTime { get; set; }

        public string DateNumber { get; set; }
    }

    public class ClientTotalInfo
    {
        public int Uid { get; set; }
        /// <summary>
        /// 使用次数
        /// </summary>
        public int Total { get; set; }
    }

}